﻿using ApplicationLibrary.SqlConnector;
using System;

namespace Fighter.Fights.ModuleData
{

    #region FG_Fight
    public class FG_Fight : Table
    {
        public static string Name = "FG_Fight";

        public static Column<int> ID = new Column<int>(Name, "ID", "ID", false);
        public static Column<string> Description = new Column<string>(Name, Properties.Resources.C_Description, "Description", LEN.BIG_DESCRIPTION);
        public static Column<bool> Active = new Column<bool>(Name, "", "Active");

        public override iColumn ForeignKey
        {
            get { return ID; }
        }

        public FG_Fight()
        {
            VisibleInRadar(new iColumn[] { ID, Description });
            Tablename = Name;
            DefineKey(new iColumn[] { ID });
        }
    }
    #endregion

    #region FG_Registration
    public class FG_Registration : Table
    {
        public static string Name = "FG_Registration";

        public static Column<string> Mail = new Column<string>(Name, "", "Mail", LEN.DESCRIPTION, false);
        public static Column<int> Athlete = new Column<int>(Name, "", "Athlete", false);
        public static Column<int> Fight = new Column<int>(Name, "", "Fight", false);

        public static Column<string> FightDesc = new Column<string>(Name, "", "FightDesc", LEN.DESCRIPTION);
        public static Column<string> AthleteName = new Column<string>(Name, "", "AthleteName", LEN.DESCRIPTION);

        public static Column<bool> ChausLight = new Column<bool>(Name, "", "ChausLight");
        public static Column<bool> SavateAss = new Column<bool>(Name, "", "SavateAss");
        public static Column<bool> PointFight = new Column<bool>(Name, "", "PointFight");
        public static Column<bool> LightContact = new Column<bool>(Name, "", "LightContact");
        public static Column<bool> KickLight = new Column<bool>(Name, "", "KickLight");
        public static Column<bool> K1Light = new Column<bool>(Name, "", "K1Light");
        public static Column<bool> ThaiLight = new Column<bool>(Name, "", "ThaiLight");
        public static Column<bool> MmaLight = new Column<bool>(Name, "", "MMALight");
        public static Column<bool> Grapling = new Column<bool>(Name, "", "Grapling");

        public static Column<bool> ChaussCombact = new Column<bool>(Name, "", "ChaussCombact");
        public static Column<bool> SavateCombact = new Column<bool>(Name, "", "SavateCombact");
        public static Column<bool> FullContact = new Column<bool>(Name, "", "FullContact");
        public static Column<bool> LowKick = new Column<bool>(Name, "", "LowKick");
        public static Column<bool> K1Rules = new Column<bool>(Name, "", "K1Rules");
        public static Column<bool> ThaiFull = new Column<bool>(Name, "", "ThaiFull");
        public static Column<bool> MMAFull = new Column<bool>(Name, "", "MMAFull");
        public static Column<bool> Checked = new Column<bool>(Name, "", "Checked");

        public override iColumn ForeignKey
        {
            get { return Mail; }
        }

        public FG_Registration()
        {
            Tablename = Name;
            DefineKey(new iColumn[] { Mail, Athlete, Fight });
        }
    }
    #endregion

}